import type { Meta, StoryObj } from "@storybook/react"
import QuestionCheckbox from "../../components/QuestionComponents/QuestionCheckbox/QuestionCheckbox"

// 定义 Meta
const meta: Meta<typeof QuestionCheckbox> = {
    title: "Question/QuestionCheckbox", // 导航层级
    component: QuestionCheckbox // 组件
}

export default meta

// 定义 Story 类型
type Story = StoryObj<typeof QuestionCheckbox>

// 默认 Story
export const Default: Story = {}

// 设置 props 的 Story
export const SetProps: Story = {
    args: {
        title: "hello",
        list: [
            { value: "v1", text: "t1", checked: false },
            { value: "v2", text: "t2", checked: true },
            { value: "v3", text: "t3", checked: true }
        ],
        isVertical: true
    }
}
